package cn.edu.neusoft.yuejian12.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

import cn.edu.neusoft.yuejian12.R;

/**
 * Created by 木子李 on 2017/10/24.
 */

public class ActivityBmActivity extends AppCompatActivity {
    private Button act_join_count;
    private ImageView activity_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bm);
        init();
        event();
    }

    private void event() {
        activity_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

        act_join_count.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(ActivityBmActivity.this, "报名成功", Toast.LENGTH_SHORT).show();
                Intent i=new Intent(ActivityBmActivity.this,BmcountActivity.class);
                startActivity(i);
            }
        });
    }

    private void init() {
        act_join_count=(Button)findViewById(R.id.act_join_count);
        activity_back=(ImageView)findViewById(R.id.activity_back);

    }

}
